import request from '@/utils/request'

export const getOwnerPageApi = async (params: any) => {
    return request.get('/owner', { params })
}

export const getOwnerOptionListApi = async () => {
    return request.get('/owner/option-list')
}

export const getOwnerByIdApi = async (id: string) => {
    return request.get(`/owner/${id}`)
}

export const createOwnerApi = async (data: any) => {
    return request.post('/owner', data)
}

export const updateOwnerApi = async (id: any, data: any) => {
    return request.put(`/owner/${id}`, data)
}

export const deleteOwnerApi = async (id: string) => {
    return request.delete(`/owner/${id}`)
}
